package com.gdth.animation;

import android.content.Context;
import android.util.AttributeSet;
import android.view.animation.RotateAnimation;

public class BaseRotateAnimation extends RotateAnimation{

	public BaseRotateAnimation(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	public BaseRotateAnimation(int formX,int toX, int pivotXType, float pivotXValue, int pivotYType, float pivotYValue){
		super(formX, toX, pivotXType, pivotXValue, pivotYType, pivotYValue);
	}
	
	public void setAnimation(AnimationListener mAnimationListener){
		this.setAnimationListener(mAnimationListener);
	}
	
	/**
	 * 设置动画持续时间
	 */
	public void setDurations(long durationMillis){
		this.setDuration(durationMillis);
	}
	
	/**
	 * 动画执行完后是否停留在执行完的状态
	 */
	public void setFillAfters(boolean arg0){
		this.setFillAfter(arg0);
	}
	
	/**
	 * 设置重复次数 
	 */
	public void setRepeatCounts(int repeatCount){
		this.setRepeatCount(repeatCount);
	}
	
	/**
	 * 执行前的等待时间
	 */
	public void setStartOffsets(long startOffset){
		this.setStartOffset(startOffset);
	}
}
